/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#include "BlenderMeshLoader.h"
#include "BlenderMeshLoadImpl.h"

namespace GNgine
{
	BlenderMeshLoader::BlenderMeshLoader(bParse::bBlenderFile *fp, Blender::Object *ob) :
		_file(fp), _object(ob)
	{
		assert(_file);
		assert(_object);
	}

	BlenderMeshLoader::~BlenderMeshLoader()
	{
	}

	void BlenderMeshLoader::loadResource(Ogre::Resource *resource)
	{
		assert(_file);
		assert(_object);
		assert(resource);

		BlenderMeshLoadImpl impl(_file,  _object, static_cast<Ogre::Mesh*>(resource));
		impl.load();

	}
}
